<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/formdiv.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" language="JavaScript">
	var ordermain_js_shipselect_err  = "[%$ST.ordermain_js_shipselect_err%]";
	var iframename = "[%$iframename%]";
	var digheight="[%$digheight%]";
	$(document).ready(function(){
		var h = $(window).height();
		if(document.getElementById("mainbodybottonauto")){
			$('.managebottonadd').css({height:h-40});
		}
		var options = {
			beforeSubmit: formverify,
			success:function(){
				return false;
			}
		}
		$('#shipprint').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	})
	function formverify(formData, jqForm, options) {
		var queryString = $.param(formData);
		var get=urlarray(queryString);
		if(get['printid']==0) {
			document.shipprint.printid.focus();
			alert(ordermain_js_shipselect_err);
			return false;
		}
		var esarchurl="index.php?archive=ordermain&action=printlist&"+queryString;
		parent.frames[iframename].onwindow(esarchurl)
		parent.closeifram();
		return false;
	}
</script>
</head>

<body class="bodyflow">
<form name="shipprint" id="shipprint" method="post" action="#body">
<input type="hidden" name="oid" value="[%$oid%]"/>
<div id="mainbodybottonauto" class="managebottonadd">
	<div class="maindobycontent">
		<div class="suggestion">
			<span class="sugicon"><span class="strong colorgorning2">[%$ST.position_title%]</span><span class="padding-left5 colorgorningage">[%$ST.ordermain_view_shipprint_text%]</span></span>
		</div>
		<div class="manageeditdiv">
			<div class="maneditcontent" id="filecheckmanger">
				<table class="formtablewin">
					<tr class="trstyle2">
						<td class="trtitle01">[%$ST.ordermain_view_add_printid%]</td>
						<td class="trtitle02">
							<select size="1" name="printid" class="select">
								<option selected value="0">[%$ST.ordermain_view_add_printid_value%]</option>
								[%forlist key=list from=$array%]
								<option value="[%$array[list].tmid%]">[%$array[list].templatename%]</option>
								[%/forlist%]
							</select>
						</td>
					</tr>
					<tr class="trstyle2">
						<td class="trtitle01">[%$ST.ordermain_view_add_title%]</td>
						<td class="trtitle02"><input type="text" name="title" size="50" maxlength="50" class="infoInput"/></td>
					</tr>
					<tr class="trstyle2">
						<td class="trtitle01">[%$ST.ordermain_view_add_othercontent%]</td>
						<td class="trtitle02"><textarea name="othercontent" rows="3" cols="50">[%$ST.ordermain_view_add_othercontent_value%]</textarea></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
<div id="downbotton">
	<div id="subbotton">
		<table border="0" width="100%">
			<tr id="bottonsubmit">
				<td id="right"><input type="submit" name="Submit" id="submitbotton" value="[%$ST.botton_print%]" class="button orange" title="[%$ST.botton_print%]"/></td>
				<td id="left" class="padding-left5"><input type="reset" name="reset" onClick="javascript:parent.closeifram();" id="release" value="[%$ST.botton_print_reset%]" class="button orange"  title="[%$ST.botton_print_reset%]" /></td>
			</tr>
		</table>
	</div>
</div>
</form>
</body>
</html>      